package com.hc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hc.domain.ProductCategory;
import com.hc.query.ProductCategoryCondition;
import com.hc.res.ProductCategoryItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hecai
 */
@Mapper
public interface ProductCategoryMapper extends BaseMapper<ProductCategory> {
    int updateBatchSelective(List<ProductCategory> list);

    int batchInsert(@Param("list") List<ProductCategory> list);

    /**
     * 根据条件查询商品类别
     *
     * @param condition
     * @return
     */
    IPage<ProductCategoryItem> selectList(IPage<ProductCategoryItem> page, @Param("condition") ProductCategoryCondition condition);
}